:root {
    --primary-color: #FF6B6B;
    --primary-light: #FF8E8E;
    --primary-dark: #FF5252;
    --secondary-color: #FFF5F5;
    --accent-color-1: #FFD93D;
    --accent-color-2: #6BCB77;
    --accent-color-3: #4D96FF;
    --text-color: #2D3436;
    --text-light: #636E72;
    --border-color: #DFE6E9;
    --success-color: #6BCB77;
    --danger-color: #FF6B6B;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 214, 61, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 20%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

#app {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color-1));
    border-radius: 20px;
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

header::before {
    content: '✨';
    position: absolute;
    font-size: 2em;
    opacity: 0.2;
    animation: twinkle 3s ease-in-out infinite;
}

header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: white;
    border-radius: 2px;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

h1 {
    font-size: 2.8em;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#input-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

#input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%);
    background-size: 20px 20px;
    animation: shine 3s linear infinite;
    pointer-events: none;
}

#input-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

input[type="text"],
input[type="datetime-local"] {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    flex: 1;
    font-size: 1.1em;
    transition: var(--transition);
    background-color: white;
    color: var(--text-color);
}

input[type="text"]:focus,
input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

input[type="text"]::placeholder {
    color: var(--text-light);
}

button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color-1));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--accent-color-1), var(--primary-color));
}

#reminder-list {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.2s both;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.5s ease-out;
}

.reminder-item:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: var(--shadow);
}

.reminder-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.reminder-content {
    flex: 1;
    padding-right: 20px;
}

.reminder-text {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
}

.reminder-text::before {
    content: '📌';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: bounce 1s ease infinite;
}

.reminder-time {
    color: var(--text-light);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 25px;
}

.reminder-time::before {
    content: '⏰';
    font-size: 1.1em;
}

.delete-btn {
    background: linear-gradient(135deg, var(--danger-color), #ff5252);
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 8px;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #ff5252, var(--danger-color));
}

.no-reminders {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.no-reminders::before {
    content: '📝';
    font-size: 4em;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-60%); }
}

@media (max-width: 768px) {
    #app {
        padding: 20px 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    .input-group {
        flex-direction: column;
    }

    input[type="text"],
    input[type="datetime-local"],
    button {
        width: 100%;
    }

    .reminder-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .delete-btn {
        align-self: flex-end;
    }

    .reminder-content {
        padding-right: 0;
    }
}
    